package march.test_3_14;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextDouble()) {
            double n = scanner.nextDouble();
            if(n == 0) {
                break;
            }
            int i = 0;
            while (n > 1) {
                n = n / 2;
                i++;
            }
            System.out.println(i);
        }
    }
}
